#ifndef WINDOW_H
#define WINDOW_H

#include <SDL/SDL.h>

class CWindow
{
	private:
		SDL_Surface *Screen;

		int nWidth, nHeight, nBpp;
		Uint32 uFlags;

		bool bCreated;
	public:
		CWindow() : nWidth(800), nHeight(600), nBpp(32), uFlags(SDL_SWSURFACE | SDL_OPENGL), bCreated(false) {}

		void SetParams(int nWidth, int nHeight, int nBpp, Uint32 uFlags);

		void Create();
		void Create(int nWidth, int nHeight, int nBpp, Uint32 uFlags);

		bool Created();

		void Resize(int nWidth, int nHeight);
};

#endif
